#!/usr/bin/env node

import {Circle} from "./09-export-object.mjs";
// 从命令行参数获取半径
const args = process.argv.slice(2);
const radius = parseFloat(args[0]);
if (isNaN(radius)) {
    console.error('Please provide a valid radius');
    process.exit(1);
}
// 创建 Circle 实例
const circle = new Circle(radius);
// 输出圆的周长和面积信息
console.log(`circle area: ${circle.area()}`);
console.log(`circle circumference: ${circle.circumference()}`);



